package com.hb.unic.core.exception;

import com.hb.unic.core.base.ICodeMessageProvider;

/**
 * 错误信息配置
 *
 * @since v1.0，2023/8/28 23:42，create by Mr.Huang.
 */
public class ExceptionMessageConfig implements ICodeMessageProvider<String> {

    private final String errorCode;

    private final String message;

    /**
     * 构造方法
     * 
     * @param errorCode 错误码
     * @param message 错误信息
     */
    public ExceptionMessageConfig(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    @Override
    public String getCode() {
        return errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
